#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_testmovetothread.h"

#include "qthread.h"

class CWorkThread;

class testmovetothread : public QMainWindow
{
    Q_OBJECT
signals:
    void signal_start(const QString &);
private slots:
    void on_pushButton_quit_clicked();
    void on_pushButton_start_clicked();

    void OnFinished();
public:
    explicit testmovetothread(QWidget *parent = Q_NULLPTR);
    ~testmovetothread();

private:
    Ui::testmovetothreadClass ui;
    QThread* m_thread;
    CWorkThread* m_worker;
};

class CWorkThread :public QObject
{
    Q_OBJECT
signals:
    void signal_finished();
public slots:
    void dowork(const QString&);
public:
    CWorkThread()=default;
    ~CWorkThread()=default;

};
